<?php

// $Id: ci_type_attr_form_view.class.php 1570 2009-01-13 12:44:02Z ogrebg $

require_once(TANGRA_MAIN_DIR.'form/fields/integer_positive/form_field_integer_positive_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_semidynamic_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/checkbox/form_field_checkbox_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class VPage_News_List_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_category = $form->get_field('category');
		$f_category_view = new Form_Field_Select_Semidynamic_View($form->get_name().'_'.$f_category->get_name(), $f_category);
		$this->add_field_view('category', $f_category_view);

		$f_items = $form->get_field('items');
		$f_items_view = new Form_Field_Integer_Positive_View($form->get_name().'_'.$f_items->get_name(), $f_items);
		$this->add_field_view('items', $f_items_view);
	}
}
